/**
 * Created by Administrator on 2018/5/14.
 */
export function getRedirectpath({type,avatar}) {
   // 根据用户信息，返回跳转地址
   // user.type   boss/genius
   // user.avatar  bossinfo/geniusinfo
  console.log(type,avatar)
  let url= (type==='boss')?'/boss':'/genius'
  if(!avatar){
    url+='info'
  }
  return url
}